SIMTRAXROOT=../
SAMPLE_DIR=${SIMTRAXROOT}samples/
SCENE_DIR=${SAMPLE_DIR}scenes
ATOMTRACE_DIR=${SAMPLE_DIR}src/progressive_pm/
PATHTRACER_DIR=${SAMPLE_DIR}src/pathtracer/

NUM_SIM_TH=1
SIM_THREADS="--simulation-threads $NUM_SIM_TH"

PROGRAM=${ATOMTRACE_DIR}
#PROGRAM=${PATHTRACER_DIR}

CORNELL_OBJ=$SCENE_DIR/cornell/CornellBox.obj
CORNELL_VIEW=$SCENE_DIR/cornell/cornell.view
CORNELL_LIGHT=$SCENE_DIR/cornell/cornell.light

CORNELL_SCENE="--model $CORNELL_OBJ --view-file $CORNELL_VIEW --light-file $CORNELL_LIGHT"

NUM_CORES=1
NUM_PROCS=2
NUM_ICACHES=4
NUM_ICACHES_BANK=4
CONFIG_FILE_TINY=../samples/configs/tiny.config
nice ./simtrax $CORNELL_SCENE ${SIM_THREADS} --l2-off --load-assembly ${PROGRAM}rt-llvm.s --num-cores $NUM_CORES --num-thread-procs $NUM_PROCS --num-icaches $NUM_ICACHES --num-icache-banks $NUM_ICACHES_BANK --config-file $CONFIG_FILE_TINY > ../pht_ems_1000_1bounce_${NUM_CORES}_cores_sim_t_${NUM_SIM_TH}_${NUM_PROCS}thproc_bucket_1_log.txt

mv ./photonmap.dat ../PhotonMapViz/photonmap_sim.dat

# ./simtrax --l2-off --load-assembly ../samples/src/pathtracer/rt-llvm.s --num-cores 1 --num-thread-procs 4 --num-icaches 1 --num-icache-banks 1 --config-file ../samples/configs/tiny.config --model ../samples/scenes/cornell/CornellBox.obj --view-file ../samples/scenes/cornell/cornell.view --light-file ../samples/scenes/cornell/cornell.light
